View Issue Details

IDProjectCategoryView StatusLast Update
0001610T99X171.00 SKB EagleSW Issuepublic2023-04-07 10:02
Reporter(ALTech) Younkwang Jung Assigned To(ALTech) Younkwang Jung Due Date2023-01-31 19:11
PrioritynormalSeveritys4-minorReproducibilityalways
Status closedResolutionfixed 
Summary0001610: [Smart3][ATV12] MIC does not work in karaoke app
DescriptionHi Kerwin

MIC does not work in karaoke app
https://jira.skbroadband.com/browse/FSTB12-59

Model: BFX-AT100 (Smart3)
F/W : 15.534.212(OS12)
Web UI : 5.3.5.990035 (dev 534)

[ Reproduction step ]
1. Download the karaoke app (Test : 금영노래방, TJ 노래방)
2. Check the output after connecting to the MIC

Please check it

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) JunGyu Kim , (ALTech) SY Yoon

Activities

(ALTech) Younkwang Jung

2023-01-17 18:10

developer  

FSTB12-59.zip (6,375,006 bytes)

(SW) Kerwin Chen

2023-01-30 09:07

developer   ~0011864

Hi YK,

From our test result, it works well.
Could you verify on latest FW ?

Thank you !

(ALTech) JunGyu Kim

2023-01-30 16:22

developer   ~0011883

Hi Kerwin,

We have tested v15.537.2 (today build version), MIC does not work in karaoke app.
Test App : 금영노래방
MIC : TJ MIC(TM-G20), earphone MIC

Could you please check it again?

Thank you.
Kim

(SW) Kerwin Chen

2023-01-31 09:09

developer   ~0011898

Hi Peter,

Please check it again on v15.537.2 release.
Thanks !

(SW) Peter Chen

2023-01-31 11:02

developer   ~0011908

Hi JunGyu,

Could you share the karaoke test app?

Thanks,
Peter

(ALTech) JunGyu Kim

2023-01-31 13:21

developer   ~0011912

Hi Peter,

Can you download on app list?
If not, I attached apk from installed STB. Please use it.

Thank you.
Kim
image.png (1,007,745 bytes)
keumyoung.zip (389,685,744 bytes)

(SW) Peter Chen

2023-01-31 18:04

developer   ~0011919

Hi JunGyu,

I check MIC is work in karaoke app on v15.537.2
Can you check it again?

Thanks,
Peter

(ALTech) JunGyu Kim

2023-02-01 09:04

developer   ~0011926

Hi Peter,

I tried many times on v15.537.2, MIC does not work.
Is there anything special I need to set up?

Thank you.
Kim

(SW) Peter Chen

2023-02-01 11:34

developer   ~0011938

Hi JunGyu,

I only choose the audio record permission not anything else. And the app you provided is installed manually.
Can you share the fail log on v15.537.2?

Thanks,
Peter
karaoke.PNG (2,161,211 bytes)

(ALTech) JunGyu Kim

2023-02-01 12:23

developer   ~0011942

Hi Peter,

I attached logcat message.
Additionally, I checked permission of karaoke app, MIC permission is permitted.

Thank you.
Kim
karaoke_log.log (272,813 bytes)
karaoke_permission.png (237,903 bytes)   
karaoke_permission.png (237,903 bytes)   

(SW) Peter Chen

2023-02-02 15:42

developer   ~0011984

Hi JunGyu,

Can you confirm the karaoke app version?
Also, please try to reboot device and install the app manually then check MIC is work or not.

Thanks,
Peter
karaoke_ver.PNG (2,110,783 bytes)

(ALTech) JunGyu Kim

2023-02-02 19:08

developer   ~0011991

Hi Peter,

I tried as below.
1. Reboot device
2. Install app manually
3. Check MIC

Still MIC does not work.
App version is same. (1.2.8)

Thank you.
Kim
test.png (53,046 bytes)   
test.png (53,046 bytes)   

(SW) Peter Chen

2023-02-04 17:05

developer   ~0012006

Hi JunGyu,

Can you try another device or another MIC ?
I try many times but still can not reproduce this issue

Thanks,
Peter

(ALTech) JunGyu Kim

2023-02-06 16:36

developer   ~0012021

Hi Peter,

I have only seen theMIC work fine once on another board today.
But since then, the MIC has never worked.
I tested it by changing the board, but the MIC still doesn't work.

I think we should to make test environment the same first.

I will share my test environment.
1. Check the normal operation of the earphone MIC (Apple earphone) at 15.534.28 on the same board
2. Update 15.537.4 (USB OTA)
3. Perform factory reset (Proceed in Google Settings)
4. MIC (earphone) connected at bootup, No RCU pairing
5. After normal boot, install karaoke app (via adb install)
6. Launch Karaoke App
7. Check MIC operation

I attached video of what I tested.
Please test again in the same environment.

Thank you.
Kim
MIC_Issue_2.mp4 (144,840,503 bytes)   
MIC_Issue_1.mp4 (46,295,820 bytes)   

(SW) Peter Chen

2023-02-07 10:04

developer   ~0012038

Hi JunGyu,

I try with your test environment but MIC (earphone) is work.
Can you help to get the log again? Please also check the tombstone is generated or not.

Thanks,
Peter

(ALTech) JunGyu Kim

2023-02-08 17:11

developer   ~0012070

Hi Peter,

I attached log and tombstone.
As you said, if I launch karaoke app, tombstone was generated.
Please refer attached file.

Thank you,
Kim

(SW) Peter Chen

2023-02-09 16:01

developer   ~0012096

Hi JunGyu,

I check your log (MIC not work) and my log (MIC work).
There is a difference below between two situation.

MIC work :
     audio-subMixingFactory: +switchNormalStream() stream 0xecfc5370, on = 0
MIC not work:
     audio-subMixingFactory: +switchNormalStream() stream 0x0, on = 0

The stream will be 0x0 when MIC not work. This log is come from the file sub_mixing_factory.c and function 'switchNormalStream'.
Can you help to check with Amlogic ?

PS. I can reproduce this issue after playing LiveTV and open karaoke app. If not playing LiveTV, I think MIC should work.

Thanks,
Peter

(ALTech) JunGyu Kim

2023-02-13 10:07

developer   ~0012137

Hi Peter,

Thank you for your analysis.
I am asking this issue to Amlogic. (https://jira.skbroadband.com/browse/FSTB12-59)
I will let you know if any update.

Thank you.
Kim

(ALTech) JunGyu Kim

2023-03-15 19:32

developer   ~0012543

Hi Peter,

As a result of applying amlogic's patch, MIC is work normally.

8a7e2bb7eff audio_hal: when open tj app, live audio is abnormal [1/1]
3ddb7157991 audio_hal: crashed in switchNormalStream [1/1]

But the MIC works normally when entering the karaoke app for the first time, but after exiting the app and go live, the MIC does not work when entering the karaoke app again.
I attached full log file.
Please check this issue.

Thank you.
Kim
image-2.png (56,802 bytes)   
image-2.png (56,802 bytes)   
logcat.log (6,384,449 bytes)

(SW) Peter Chen

2023-03-16 10:46

developer   ~0012551

Hi JunGyu,

I check the log and still can see the log "switchNormalStream() stream 0x0".
Please check with Amlogic again.

03-15 20:29:20.889 3606 5188 D hal_mic : hal_mic:HAL_MicSetOnOff v101(MIC=on)
03-15 20:29:20.892 3606 5188 I AmlAudioOutPort: eagle mic get source success
03-15 20:29:20.892 3606 5188 I AmlAudioOutPort: eagle mic get sink success
03-15 20:29:20.894 3505 6943 I audio_hw_primary: ++adev_create_audio_patch
03-15 20:29:20.894 3505 6943 I audio_hw_primary: +adev_create_audio_patch num_sources [1] , num_sinks [1],src_config->type=1,sink_config->type=1,aml_dev->patch_src=11
03-15 20:29:20.894 3505 6943 I audio_hw_primary: --register_audio_patch: after registering new patch, patch sets will be:
03-15 20:29:20.894 3505 6943 I audio_hw_primary: adev_create_audio_patch(), patch new handle for AF: 0xe3afba7c
03-15 20:29:20.894 3505 6943 I audio_hw_primary: [adev_create_audio_patch:11417] sink dev type:0x400
03-15 20:29:20.894 3505 6943 I audio_hw_primary: aml_audio_output_routing: outport OUTPORT_HDMI already exists, do nothing
03-15 20:29:20.894 3505 6943 I audio_hw_primary: adev_create_audio_patch: dev->dev patch: inport(INPORT_BUILTIN_MIC), outport(OUTPORT_HDMI)
03-15 20:29:20.894 3505 6943 D audio_hw_primary: create_patch_l: enter
03-15 20:29:20.894 3505 6943 I audio-subMixingFactory: +switchNormalStream() stream 0x0, on = 0
03-15 20:29:20.894 3505 6943 E audio-subMixingFactory: switchNormalStream(), not normal pcm stream

Thanks,
Peter

(SW) Kerwin Chen

2023-04-07 09:35

developer   ~0012751

Hi Mr. YK and JunGyu Kim,

This issue is solved by amlogic. (AMANDROIDS-91)
Please check and close it.
Thank you !

(ALTech) JunGyu Kim

2023-04-07 10:02

developer   ~0012754

Hi Kerwin,

As you mentioned, this issue was resolved by amlogic patch.
I close this issue.

Thank you.
Kim

Issue History

Date Modified Username Field Change
2023-01-17 18:10 (ALTech) Younkwang Jung New Issue
2023-01-17 18:10 (ALTech) Younkwang Jung Status new => assigned
2023-01-17 18:10 (ALTech) Younkwang Jung Assigned To => (SW) Kerwin Chen
2023-01-17 18:10 (ALTech) Younkwang Jung File Added: FSTB12-59.zip
2023-01-17 18:11 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2023-01-17 18:11 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2023-01-17 18:12 (ALTech) Younkwang Jung Due Date => 2023-01-31 19:11
2023-01-30 09:07 (SW) Kerwin Chen Assigned To (SW) Kerwin Chen => (ALTech) Younkwang Jung
2023-01-30 09:07 (SW) Kerwin Chen Status assigned => acknowledged
2023-01-30 09:07 (SW) Kerwin Chen Note Added: 0011864
2023-01-30 16:22 (ALTech) JunGyu Kim Note Added: 0011883
2023-01-31 09:09 (SW) Kerwin Chen Note Added: 0011898
2023-01-31 09:09 (SW) Kerwin Chen Assigned To (ALTech) Younkwang Jung => (SW) Peter Chen
2023-01-31 11:02 (SW) Peter Chen Note Added: 0011908
2023-01-31 13:21 (ALTech) JunGyu Kim Note Added: 0011912
2023-01-31 13:21 (ALTech) JunGyu Kim File Added: image.png
2023-01-31 13:21 (ALTech) JunGyu Kim File Added: keumyoung.zip
2023-01-31 18:04 (SW) Peter Chen Note Added: 0011919
2023-02-01 09:04 (ALTech) JunGyu Kim Note Added: 0011926
2023-02-01 11:34 (SW) Peter Chen Note Added: 0011938
2023-02-01 11:34 (SW) Peter Chen File Added: karaoke.PNG
2023-02-01 12:23 (ALTech) JunGyu Kim Note Added: 0011942
2023-02-01 12:23 (ALTech) JunGyu Kim File Added: karaoke_log.log
2023-02-01 12:23 (ALTech) JunGyu Kim File Added: karaoke_permission.png
2023-02-02 15:42 (SW) Peter Chen Note Added: 0011984
2023-02-02 15:42 (SW) Peter Chen File Added: karaoke_ver.PNG
2023-02-02 19:08 (ALTech) JunGyu Kim Note Added: 0011991
2023-02-02 19:08 (ALTech) JunGyu Kim File Added: test.png
2023-02-04 17:05 (SW) Peter Chen Note Added: 0012006
2023-02-06 16:36 (ALTech) JunGyu Kim Note Added: 0012021
2023-02-06 16:36 (ALTech) JunGyu Kim File Added: MIC_Issue_2.mp4
2023-02-06 16:36 (ALTech) JunGyu Kim File Added: MIC_Issue_1.mp4
2023-02-07 10:04 (SW) Peter Chen Note Added: 0012038
2023-02-08 17:11 (ALTech) JunGyu Kim Note Added: 0012070
2023-02-08 17:11 (ALTech) JunGyu Kim File Added: karaoke_not_work_logcat_tombstone.zip
2023-02-09 16:01 (SW) Peter Chen Note Added: 0012096
2023-02-13 10:07 (ALTech) JunGyu Kim Note Added: 0012137
2023-03-15 19:32 (ALTech) JunGyu Kim Note Added: 0012543
2023-03-15 19:32 (ALTech) JunGyu Kim File Added: image-2.png
2023-03-15 19:32 (ALTech) JunGyu Kim File Added: logcat.log
2023-03-16 10:46 (SW) Peter Chen Note Added: 0012551
2023-04-07 09:35 (SW) Kerwin Chen Note Added: 0012751
2023-04-07 09:36 (SW) Kerwin Chen Assigned To (SW) Peter Chen => (ALTech) Younkwang Jung
2023-04-07 09:36 (SW) Kerwin Chen Status acknowledged => resolved
2023-04-07 09:36 (SW) Kerwin Chen Resolution open => fixed
2023-04-07 10:02 (ALTech) JunGyu Kim Status resolved => closed
2023-04-07 10:02 (ALTech) JunGyu Kim Note Added: 0012754